package com.atguigu.spring6iocxml.diMap;

import java.util.Map;

public class Teacher {
    private String name;
    public String tid;

    public Map<String, Student> studentMap;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public Map<String, Student> getStudentMap() {
        return studentMap;
    }

    public void setStudentMap(Map<String, Student> studentMap) {
        this.studentMap = studentMap;
    }

    public void run() {
        studentMap.forEach((k,v)-> System.out.println(k+"-->"+v.getName()+"-->"+v.getLessonList()));
    }
}
